<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Travelpayout API</title>
</head>
<body>
<a href="demo.html">Demo</a>
	<fieldset>
		<legend>__Result___________</legend>
		<c:forEach var="flight" items="${flights}">
				<hr/>
				Price: ${flight.price.amount} ${flight.price.currencyCode} <br />
				___Outbound Information_____<br />
				Number of stops: ${flight.outBound.numberStops}<br />
				Total Duration: ${flight.outBound.totalDuration}<br />
				-------Departure Airports-------<br />
			<c:forEach var="departure" items="${flight.outBound.departAirports}">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Code: ${departure.code }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name: ${departure.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Departure Time: ${departure.departureTime}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Class: ${departure.airline.flightClass }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Number: ${departure.airline.flightNumber}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name of Carrier: ${departure.airline.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------<br />
			</c:forEach>
			-------Arrival Airports-------<br />
			<c:forEach var="arrival" items="${flight.outBound.arriveAirports}">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Code: ${arrival.code }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name: ${arrival.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Departure Time: ${arrival.arrivalTime}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Class: ${arrival.airline.flightClass }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Number: ${arrival.airline.flightNumber}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name of Carrier: ${arrival.airline.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------<br />
			</c:forEach>
			_____Inbound Information_____<br />
				Number of stops: ${flight.inBound.numberStops}<br />
				Total Duration: ${flight.inBound.totalDuration}<br />
				-------Departure Airports-------<br />
			<c:forEach var="departure" items="${flight.inBound.departAirports}">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Code: ${departure.code }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name: ${departure.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Departure Time: ${departure.departureTime}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Class: ${departure.airline.flightClass }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Number: ${departure.airline.flightNumber}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name of Carrier: ${departure.airline.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------<br />
			</c:forEach>
			-------Arrival Airports-------<br />
			<c:forEach var="arrival" items="${flight.inBound.arriveAirports}">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Code: ${arrival.code }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name: ${arrival.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Departure Time: ${arrival.arrivalTime}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Class: ${arrival.airline.flightClass }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flight Number: ${arrival.airline.flightNumber}<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Name of Carrier: ${arrival.airline.name }<br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -----------------------<br />
			</c:forEach>
			<hr/>
		</c:forEach>
	</fieldset>
</body>
</html>